Repository navigation
fix(sync-models): reconcile limit.output and variants drift on existing entries (#1799) - #9917
Conversation
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Fixes #1799.
Problem
The antigravity "existing model" update branch in
bin/sync-models.mjsjudged drift bylimit.contextonly and wrotevariantsonly when the existing entry had none — so a wronglimit.outputand a stale effort-variant set survived every sync while the run reported the config up-to-date, and the sync never converged.Change
planModelReconciliation(existing, limits, variants)inbin/sync-models.mjs: plans one update per drifted key — the full desiredlimitwhenevercontextoroutputdiffers (or the limit is missing), and the desiredvariantswhenever they differ from the variants built from the current effort set. An already-correct entry plans no updates, so a converged sync records no edits and no write churn.jsonValueEqual): key order in the parsed config follows the file, and a key-order difference is not drift.totalUpdatedcount per reconciled model as before).Scope note: the codex acceptance item is moot
The issue's second acceptance item targeted the openai-codex update branch. That sync was retired 2026-11-03 with the provider definition (see the comment in
bin/sync-models.mjs: "openai-codex: retired 2026-11-03 — the provider definition was deleted"), so there is no codex branch left to reconcile at current main. The live branch with the defect shape was the antigravity one, fixed here.Tests
Regression tests in
bin/sync-models.test.mjsin the file's verbatim-extraction style, oracle: the plan for an entry is exactly the set of keys whose desired value differs under order-insensitive equality.Run on the laptop worktree:
node --test bin/sync-models.test.mjs— 46 pass, 0 fail (39 existing + 7 new).Queue: task 15169 (triage packet; fix done in the same claim per the inline-triage rule), lane code-a.
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.Summary by CodeRabbit